import './assets/main.scss'

import { createApp } from 'vue'
import App from './App.vue'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css' // 导入样式

import router from '@/router'
import { createPinia } from 'pinia'
import { createPersistedState } from 'pinia-persistedstate-plugin'
import locale from 'element-plus/dist/locale/zh-cn.mjs'


const persist = createPersistedState()
const app = createApp(App)
const pinia = createPinia()


pinia.use(persist)
app.use(pinia)
app.use(router) // 还要去使用
app.use(ElementPlus, { locale }) // 使用ElementPlus

app.mount('#app')
